package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemberMapper;
import com.whq.entity.Member;
import com.whq.service.MemberService;

@Service(value = "tdMemberService")
public class MemberServiceImpl implements MemberService {

    @Autowired
    private MemberMapper<Member>tdMemberMapper;
    
    @Override
    public Integer insertSelective(Member tdMember) throws Exception {
           return this.tdMemberMapper.insertSelective(tdMember);
        }

    @Override
    public Integer insertBatch(List<Member> tdMember) throws Exception {
           return this.tdMemberMapper.insertBatch(tdMember) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdMemberMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdMemberMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(Member tdMember) {
           return this.tdMemberMapper.updateByPrimaryKeySelective(tdMember);
    }

    @Override
    public Member findById(Object id) {
           return (Member) this.tdMemberMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Member> selectByCondition(Member tdMember) {
           return (List<Member>) this.tdMemberMapper.selectByCondition(tdMember);
    }

    @Override
    public Integer selectCountByCondition(Member tdMember) {
           return  this.tdMemberMapper.selectCountByCondition(tdMember);
    }

}
